package com.lianqi.emcpframework.data.masker.configure;

import com.lianqi.emcpframework.data.masker.DataMaskerProvider;
import com.lianqi.emcpframework.data.masker.MaskerDefinition;
import com.lianqi.emcpframework.data.masker.StringMasker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program emcp-framework
 * @ClassName DataMaskconfigure
 * @description: 数据脱敏组件配置
 * @author: sky
 * @create: 2019/05/27 09:36
 */
@Configuration
public class DataMaskconfigure {

    @Bean
    public MaskerDefinition stringMasker(){
        return new StringMasker();
    }
    @Bean
    public DataMaskerProvider dataMaskerProvider(){
        return new DataMaskerProvider();
    }

}
